package net.kornr.abstractcanvassamples.client;

import net.kornr.abstractcanvas.client.gwt.CanvasPanelExt;
import net.kornr.canvaschart.client.core.AnnotatedCanvas;
import net.kornr.canvaschart.client.test.SimpleXYPlot;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.widgetideas.graphics.client.Color;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Demo implements EntryPoint {

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    VerticalPanel vPanel = new VerticalPanel();

	CanvasPanelExt canvas1 = new CanvasPanelExt(300,150);

	canvas1.setFillStyle(Color.WHITE);
	canvas1.setGlobalAlpha(1.0);
	canvas1.fillRect(0, 0, canvas1.getCoordWidth(), canvas1.getCoordHeight());
	
	canvas1.addCanvasPainter(new ColorTest());
	canvas1.addCanvasPainter(new PathTest());
	vPanel.add(canvas1);
    RootPanel.get().add(vPanel);

  }
}
